﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data.SqlClient;
namespace TestLogin
{
	public partial class DivingLogin : Form
	{
		public DivingLogin()
		{
			InitializeComponent();
		}

		private void Form1_Load(object sender, EventArgs e)
		{

		}

		private void textBox1_TextChanged(object sender, EventArgs e)
		{

		}

		private void LoginBT_Click(object sender, EventArgs e)
		{

			this.AccessLB.Text = DBHandler.login(this.UserTB.Text,this.PassTB.Text).ToString();

		}

		

		//TODO rename addTest() to this
		private void ConnectDB_Click(object sender, EventArgs e)
		{

			DBHandler.addAccount(this.UserTB.Text, this.PassTB.Text);//addTest();
			
				
		
		}

		private void CleanseBT_Click(object sender, EventArgs e)
		{
			DBHandler.cleanse();
		}

	}
}
